import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {BaseGoodsComponent} from './base-goods.component';

const routes: Routes = [
    {path: '', component: BaseGoodsComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-base-goods/add-base-goods.module#AddBaseGoodsModule'},
            {path: 'list', loadChildren: './list-base-goods/list-base-goods.module#ListBaseGoodsModule'},
            {path: 'modify', loadChildren: './modify-base-goods/modify-base-goods.module#ModifyBaseGoodsModule'},
            {path: 'report', loadChildren: './report-base-goods/report-base-goods.module#ReportBaseGoodsModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class BaseGoodsRoutingModule {
}
